package com.system.data.dao;

import com.system.data.model.ChnAgriArticle;
import com.system.data.model.ChnAgri_info;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ChnAgriDao {
    @Select("SELECT * FROM `chn_agri` WHERE date=#{today};")
    List<ChnAgri_info> findChnAgriNews(@Param("today") String today);

    @Select("SELECT news_content FROM `chn_agri` WHERE news_title=#{title};")
    List<ChnAgriArticle> findChnAgriArticle(@Param("title") String title);

}
